//
//  ToiletModel.h
//  Meroad
//
//  Created by 沈煜航 on 2019/2/19.
//  Copyright © 2019 沈煜航. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIKit/UIKit.h"
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ToiletModel : NSObject

//厕所编号
@property (nonatomic) NSString *uuid;
//定位
@property (nonatomic) CLLocationDegrees longitude;
@property (nonatomic) CLLocationDegrees latitude;
@property (nonatomic) CLLocation *location;
@property (nonatomic, copy) NSString *address;    //具体位置（中文）
//空余蹲位数与总蹲位数
@property (nonatomic) NSInteger spareHolesNumber;
@property (nonatomic) NSInteger allHolesNumber;
//卫生水平
@property (nonatomic) NSInteger hygieneLevel;
//用户评级
@property (nonatomic) NSInteger userEvaluation;

//剩余纸量
@property (nonatomic) NSInteger leftPaper;

//排序结果
@property (nonatomic) NSInteger sortResult;

//距离
@property (nonatomic) double distant;

-(instancetype)initWithDict:(NSDictionary*)dict;
+(instancetype)modelWithDict:(NSDictionary*)dict;
-(void)initWithToiletModel:(ToiletModel*)toilet;

-(BOOL)isEqual:(ToiletModel*)toilet;

- (void)initialAddress;

@end

NS_ASSUME_NONNULL_END
